<template>
  <div class="App">
    <h1 class="title">Count子组件</h1> 
    <p class="content">count:{{count}}</p>
    <p>{{info['name']}}</p>
    <button @click="changeCount(5)">点击</button>
  </div>
</template>
<script>
export default {
  name: 'Count',
  data() {
    return {
      
    }
  },
  // props: ["count", "changeCount", "info"],
  props: {
    count: Number,
    info: Object,
    changeCount: Function,
    math: Number,
    chinese: {
      type: Number,
      required: true,
      default: 10,
    }
  }

}
</script>
<style scoped>
  
</style>